package com.seven.commons;

import com.google.common.collect.Lists;
import com.seven.commons.excel.ExcelUtils;
import org.junit.Test;

import java.util.List;

/**
 * @author sevenDay
 * @classname ${CLASSNAME}
 * @description: 描述TODO
 * @date 2018/5/14
 */
public class Export {

    @Test
    public void exportFile(){

         List students = Lists.newArrayList(new Student(27, "zfh", 1),
                new Student(27, "zfh01", 2));
         ExcelUtils.exportExcelToPath(students,Student.class,"","","student.xlsx",true,"","D:/");
        //ExcelUtils.exportExcelToPath(students,Student.class,"学生",null,"student.xlsx",true,"{}","D:/excel/");
    }
}
